package com.step.ems.component

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.offset
import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp

@Composable
fun MySnackbarHost(hostState: SnackbarHostState) {
    Box(
        modifier = Modifier
            .fillMaxSize()
            .offset(y = 30.dp),
        contentAlignment = Alignment.TopCenter,
    ) {
        SnackbarHost(
            hostState = hostState,
        )
    }
}
